// Copyright 2015 Christian Roggia. All rights reserved.
// Use of this source code is governed by an Apache 2.0 license that can be
// found in the LICENSE file.

#include "..\Global\Global.h"

// If the returned value from the function (f) is zero, return false
#define CHECK_AND_COPY_VALUE(a, f) \
{ \
	if(((a) = (f)) == 0) \
		return false; \
}

namespace Shamoon { namespace Modules { namespace Encryption {
	bool WriteEncodedResource(LPCWSTR szFileName, HMODULE hModule, LPCWSTR lpName, LPCWSTR lpType, char *vKey, UINT32 nKeyLength);
}}}